strings.trieNode.prefix (field)
19 uses
strings (current package)
replace.go#L145: prefix string
replace.go#L167: if t.prefix != "" {
replace.go#L170: for ; n < len(t.prefix) && n < len(key); n++ {
replace.go#L171: if t.prefix[n] != key[n] {
replace.go#L175: if n == len(t.prefix) {
replace.go#L182: if len(t.prefix) == 1 {
replace.go#L186: prefix: t.prefix[1:],
replace.go#L192: t.table[r.mapping[t.prefix[0]]] = prefixNode
replace.go#L194: t.prefix = ""
replace.go#L200: prefix: t.prefix[n:],
replace.go#L203: t.prefix = t.prefix[:n]
replace.go#L215: t.prefix = key
replace.go#L246: } else if node.prefix != "" && HasPrefix(s, node.prefix) {
replace.go#L247: n += len(node.prefix)
replace.go#L248: s = s[len(node.prefix):]
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |